import java.io.DataInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;



public class VerwaltungTCPClient {
  public static void main (String args[]) {
  
    try{
      int serverPort = 7896;
      Socket s = new Socket ("localhost", serverPort);
      
      ObjectOutputStream out = new ObjectOutputStream ( s.getOutputStream());
      DataInputStream in = new DataInputStream ( s.getInputStream());
      
      DataObject request = new DataObject(args);
      out.writeObject(request);
        
      // Object data = in.readUTF ();
      // System. out.println("Empfangen: "+ data) ;
      s.close();
    
    }catch (UnknownHostException e){
      System.out.println(" Sock:"+ e.getMessage());
    }catch (EOFException e){ System.out.println(" EOF:"+ e.getMessage());
    }catch (IOException e){ System.out.println(" IO:"+ e.getMessage());}
  }// main
}// class